package online.longzipeng.cinemasys.vo.session;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import online.longzipeng.cinemasys.vo.query.BaseQueryVO;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author lzp
 * @date 2021/4/29 15:02
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "场次查询对象",description = "请求参数类")
public class SessionQueryVO extends BaseQueryVO {

    /**
     * 电影的名称
     */
    @ApiModelProperty(value = "电影名称",example = "此刻小说家",required = false)
    private String movieName;

    /**
     * 影厅id
     */
    @ApiModelProperty(value = "影厅id",example = "1",required = false)
    private Long hallId;

    /**
     * 电影开始播放时间
     */
    @ApiModelProperty(value = "电影开始播放时间",example = "",required = false)
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime startTime;

    /**
     * 电影结束播放时间
     */
    @ApiModelProperty(value = "电影结束播放时间",example = "",required = false)
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime endTime;

    /**
     * 票价
     */
    @ApiModelProperty(value = "票价",example = "25.5",required = false)
    private BigDecimal price;

}
